﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class BonusInfoConfig : EntityTypeConfiguration<BonusInfo>
    {
        public BonusInfoConfig()
        {
            ToTable("Himall_Bonus");
            Property(item => item.Name).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.MerchantsName).HasColumnType("varchar").HasMaxLength(50);
            Property(item => item.Remark).HasColumnType("varchar").HasMaxLength(200);
            Property(item => item.Blessing).HasColumnType("varchar").HasMaxLength(200);
            Property(item => item.QRPath).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.ImagePath).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.Description).HasColumnType("varchar").HasMaxLength(255);
            Property(item => item.ReceiveHref).HasColumnType("varchar").HasMaxLength(200);           
        }
    }
}
